From: robertl Date: Tue, 5 Oct 2010 20:54:38 +0000 (+0000) Subject: Fix swapped lat/lon in KML read. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~16^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6ae0f2bf211cbcafdb467e62ba147ce43be2e561;p=gpsbabel.git Fix swapped lat/lon in KML read. --- diff --git a/kml.c b/kml.c index 7d7f8203e..e7285c721 100644 --- a/kml.c +++ b/kml.c @@ -245,7 +245,7 @@ void wpt_coord(const char *args, const char **attrv) int n = 0; double lat, lon, alt; // Alt is actually optional. - n = sscanf(args, "%lf,%lf,%lf", &lat, &lon, &alt); + n = sscanf(args, "%lf,%lf,%lf", &lon, &lat, &alt); if (n >= 2) { wpt_tmp->latitude = lat; wpt_tmp->longitude = lon;